package com.freemalll.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.MerInstallmentInfoCompetitiveDto;
import com.freemalll.merchant.domain.entity.MerInstallmentInfoCompetitive;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *  映射层。
 *
 * @author songshixiong
 * @since 2025-05-26
 */
@Mapper
public interface MerInstallmentInfoCompetitiveMapper extends BaseMapper<MerInstallmentInfoCompetitive> {

    @Select(" select competitive_id,installment_id,competitive_organizations,competitive_rate from mer_installment_info_competitive where delete_flag = 0 and installment_id = #{installmentId} ")
    List<MerInstallmentInfoCompetitiveDto> listByInstallmentId(@Param("installmentId") String installmentId);
}
